package net.loyintean.pearlshell.base.model;

/**
 * defined an interface for models which need a code-text pair.
 * <p>
 * normally, the code is used for back-end and text is shown in front-end.
 * <p>
 * I thought a model is better then map.
 * 
 * @author Loy
 * @version 2014-7-9.1.0.0
 */
public interface ICodeText {

	/**
	 * get code
	 * 
	 * @return
	 */
	String getCode();

	/**
	 * set code
	 * 
	 * @param code
	 */
	void setCode(String code);

	/**
	 * get text for shown.
	 * 
	 * @return
	 */
	String getText();

	/**
	 * set text.
	 * 
	 * @param text
	 */
	void setText(String text);

}